StretchViewer Visualization Applet

This document describes how to use the StretchViewer visualization applet. Basically StretchViewer takes a tree structure described in a particular format and displays it as an applet.

Data format

1. Every node data has to have a absolute path name. In the example, Categories is the root node. The other nodes are followed by '/'
2. textcolor RGB representation such as #336699 can be used instead of blue, red, magenta, orange.
3. url The associate URL to the leaf node.

Let's define a test.txt example:

Categories textcolor=red 
Categories/External websites textcolor=blue
Categories/External websites/Oracle   url=http://www.oracle.com textcolor=black
Categories/External websites/OTN url=http://otn.oracle.com textcolor=black
Categories/Internal websites textcolor=blue
Categories/Internal websites/Benri url=http://benri.us.oracle.com textcolor=black
Categories/Internal websites/Aria url=http://aria.us.oracle.com textcolor=black

Applet code:

You invoke the applet using the following HTML snippet:

<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        width="100%" height="500" align="baseline"
        codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
 <param name="code" value="oracle.apps.iam.am.stretchviewer.StretchViewer.class"/>
 <param name="ImageDirectory" value="images/"/>
 <param name="codebase" value="http://yourmachinename/classes_g"/>
 <param name="DATA" value="http://yourmachinename/test.txt"/>
 <param name="DATALENGTH" value="66308"/>
 <param name="MODE" value="horizontal"/>
 <param name="BACKGROUND" value="white"/>
 <param name="STICKCOLOR" value="lightGray"/>
 <param name="AUTOEXPAND" value="true"/>
 <param name="CONTRACTABLE" value="true"/>
 <param name="TARGET" value="_top"/>
 </object>

The object classid and codebase depends on your current Java Plug in. We recommend using Sun's plug in that works in mostly all browsers including IE.

The parameter code codebase specifies the location of the StretchViewer jar file in your web server. The rest of the paramters allow you to change the look and feel of the applet.

The output looks like